package cn.edu.xmu.oomall.customer.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @author Jiazhe Yuan
 * @date 2021-12-14 12:22:40
 */
public class AddressVo {
    @NotNull
    private Long regionId;

    @NotBlank(message = "详细地址不能为空")
    private String detail;

    @NotBlank(message = "收件人不能为空")
    private String consignee;

    @Pattern(regexp="[+]?[0-9*#]+",message="手机号格式不正确")
    @NotBlank(message = "手机号不能为空")
    private String mobile;
}
